<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initAutoload()
	{
		$autoloader = new Zend_Application_Module_Autoloader(
				array(
						'basePath' => APPLICATION_PATH . '/modules/admin/',
						'namespace' => 'Admin'
						)
				);
		return $autoloader;
	}
	protected function _initPlugins()
	{
		$front = Zend_Controller_Front::getInstance();
		$front->registerPlugin(new Application_Plugin_SelectLayout());
	}
	/*public function _initRouter() {
		$front = $this->bootstrap('FrontController')->frontController;
		$router = $front->getRouter();
		$router->addRoute(
				'admin', 
				new Zend_Controller_Router_Route(
						'user/:controller/:action',
						array(
								'module' => 'admin',
								'controller' => 'index',
								'action' => 'index'
								)
						)
				);
	}*/
}

